FHIR © HL7.org  |  Server Home  |  FHIR Server FHIR Server 3.4.11  |  FHIR Version n/a  User: [n/a]

Resource TestScript/FHIR Server from package hl7.fhir.uv.radiation-dose-summary#current (78 ms)

Package hl7.fhir.uv.radiation-dose-summary
Type TestScript
Id Id
FHIR Version R4
Source http://hl7.org/fhir/uv/radiation-dose-summary/https://build.fhir.org/ig/HL7/fhir-radiation-dose-summary-ig/TestScript-RDSC-Simulator.html
Url http://hl7.org/fhir/uv/radiation-dose-summary/TestScript/RDSC-Simulator
Version 0.1.0
Status active
Date 2021-07-17
Name TestScript_RDSC_Simulator
Experimental False
Realm uv
Authority hl7
Description TestScript to validate the FHIR Server searching capabilities.
Copyright HL7 2021

Resources that use this resource

No resources found


Resources that this resource uses

No resources found



Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: TestScript RDSC-Simulator

url: TestScript TestScript_RDSC_Simulator

version: 0.1.0

name: TestScript_RDSC_Simulator

status: Active

date: 2021-07-17

publisher: HL7 International / Imaging Integration

contact: http://www.hl7.org/Special/committees/imagemgt, HL7 Imaging Integration Workgroup: http://www.hl7.org/Special/committees/imagemgt, Abderrazek Boufahja: abderrazek.boufahja@gehealthcare.com

description:

TestScript to validate the FHIR Server searching capabilities.

jurisdiction: Global (Whole world)

copyright:

HL7 2021

Destinations

-IndexProfile
*1Test script profile destination type FHIR-Server: FHIR Server

variable

name: rdsResourceId

defaultValue: 2535717

description: Enter the resource ID of the Observation describing a Radiation Dose Summary, registered in your server.

variable

name: patientId

expression: Observation.subject.reference.replaceMatches('.*Patient/','').replaceMatches('/_history.*','')

sourceId: rds-read-response

variable

name: deviceId

expression: Observation.device.reference.replaceMatches('.*Device/','').replaceMatches('/_history.*','')

sourceId: rds-read-response

variable

name: practitionerId

expression: Observation.performer.reference.replaceMatches('.*Practitioner/','').replaceMatches('/_history.*','')

sourceId: rds-read-response

variable

name: imagingStudyId

expression: Observation.partOf.reference.replaceMatches('.*(MedicationAdministration|MedicationDispense|MedicationStatement|Procedure|Immunization|ImagingStudy)/','').replaceMatches('/_history.*','')

sourceId: rds-read-response

variable

name: date

path: Observation/effectiveDateTime/@value

sourceId: rds-read-response

variable

name: identifier

path: Observation/identifier/value

sourceId: rds-read-response

test

name: Observation_read

description: Read provided Observation - the radiation dose summary

action

Operations

-TypeResourceDescriptionAcceptEncodeRequestUrlParamsResponseId
*Test script operation code read: ReadObservationRead the Radiation Dose Summary observation ${rdsResourceId}jsontrue/${rdsResourceId}rds-read-response

action

Asserts

-DescriptionDirectionOperatorResponseCodeWarningOnly
*Confirm that the returned HTTP status is 200(OK) or 201(Created).responsein200,201false

action

Asserts

-DescriptionDirectionOperatorPathWarningOnly
*Confirm that the returned Observation is not empty.responsenotEmptyObservation/idfalse

test

name: Observation_search_patient

description: Search radiation dose summary by patient

action

Operations

-TypeResourceDescriptionAcceptEncodeRequestUrlParams
*Test script operation code search: SearchObservationSearch Radiation Dose Summary using the patientId ${patientId}jsontrue?code=73569-6&patient=${patientId}

action

Asserts

-DescriptionExpressionWarningOnly
*Confirm that the total number of response is greater than 1.Bundle.total.toInteger() >= 1false

test

name: Observation_search_device

description: Search radiation dose summary by device

action

Operations

-TypeResourceDescriptionAcceptEncodeRequestUrlParams
*Test script operation code search: SearchObservationSearch Radiation Dose Summary using the deviceId ${deviceId}jsontrue?code=73569-6&device=${deviceId}

action

Asserts

-DescriptionExpressionWarningOnly
*Confirm that the total number of response is greater than 1.Bundle.total.toInteger() >= 1false

test

name: Observation_search_partof

description: Search radiation dose summary by part-of

action

Operations

-TypeResourceDescriptionAcceptEncodeRequestUrlParams
*Test script operation code search: SearchObservationSearch Radiation Dose Summary using the ImagingStudy ID ${imagingStudyId}jsontrue?code=73569-6&part-of=${imagingStudyId}

action

Asserts

-DescriptionExpressionWarningOnly
*Confirm that the total number of response is greater than 1.Bundle.total.toInteger() >= 1false

test

name: Observation_search_identifier

description: Search radiation dose summary by identifier

action

Operations

-TypeResourceDescriptionAcceptEncodeRequestUrlParams
*Test script operation code search: SearchObservationSearch Radiation Dose Summary using the identifier of the Observation ${identifier}jsontrue?code=73569-6&identifier=${identifier}

action

Asserts

-DescriptionExpressionWarningOnly
*Confirm that the total number of response is greater than 1.Bundle.total.toInteger() >= 1false

test

name: Observation_search_date

description: Search radiation dose summary by date

action

Operations

-TypeResourceDescriptionAcceptEncodeRequestUrlParams
*Test script operation code search: SearchObservationSearch Radiation Dose Summary using the date of the Observation ${date}jsontrue?code=73569-6&date=${date}

action

Asserts

-DescriptionExpressionWarningOnly
*Confirm that the total number of response is greater than 1.Bundle.total.toInteger() >= 1false

test

name: Observation_read_patient

description: Read patient resource

action

Operations

-TypeResourceDescriptionAcceptEncodeRequestUrlParamsResponseId
*Test script operation code read: ReadPatientRead the Patient ${patientId}jsontrue/${patientId}patient-read-response

action

Asserts

-DescriptionDirectionOperatorResponseCodeWarningOnly
*Confirm that the returned HTTP status is 200(OK) or 201(Created).responsein200,201false

action

Asserts

-DescriptionDirectionOperatorPathWarningOnly
*Confirm that the returned Patient is not empty.responsenotEmptyidfalse

test

name: Observation_read_device

description: Read device resource

action

Operations

-TypeResourceDescriptionAcceptEncodeRequestUrlParamsResponseId
*Test script operation code read: ReadDeviceRead the Device ${deviceId}jsontrue/${deviceId}device-read-response

action

Asserts

-DescriptionDirectionOperatorResponseCodeWarningOnly
*Confirm that the returned HTTP status is 200(OK) or 201(Created).responsein200,201false

action

Asserts

-DescriptionDirectionOperatorPathWarningOnly
*Confirm that the returned Device is not empty.responsenotEmptyidfalse

test

name: Observation_read_practitioner

description: Read practitioner resource

action

Operations

-TypeResourceDescriptionAcceptEncodeRequestUrlParamsResponseId
*Test script operation code read: ReadPractitionerRead the Practitioner ${practitionerId}jsontrue/${practitionerId}practitioner-read-response

action

Asserts

-DescriptionDirectionOperatorResponseCodeWarningOnly
*Confirm that the returned HTTP status is 200(OK) or 201(Created).responsein200,201false

action

Asserts

-DescriptionDirectionOperatorPathWarningOnly
*Confirm that the returned Practitioner is not empty.responsenotEmptyidfalse

test

name: Observation_read_imagingstudy

description: Read imagingstudy resource

action

Operations

-TypeResourceDescriptionAcceptEncodeRequestUrlParamsResponseId
*Test script operation code read: ReadImagingStudyRead the ImagingStudy ${imagingStudyId}jsontrue/${imagingStudyId}imagingstudy-read-response

action

Asserts

-DescriptionDirectionOperatorResponseCodeWarningOnly
*Confirm that the returned HTTP status is 200(OK) or 201(Created).responsein200,201false

action

Asserts

-DescriptionDirectionOperatorPathWarningOnly
*Confirm that the returned ImagingStudy is not empty.responsenotEmptyidfalse

Source

{
  "resourceType" : "TestScript",
  "id" : "RDSC-Simulator",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: TestScript RDSC-Simulator</b></p><a name=\"RDSC-Simulator\"> </a><a name=\"hcRDSC-Simulator\"> </a><a name=\"hcRDSC-Simulator-en-US\"> </a><p><b>url</b>: <a href=\"TestScript-RDSC-Simulator.html\">TestScript TestScript_RDSC_Simulator</a></p><p><b>version</b>: 0.1.0</p><p><b>name</b>: TestScript_RDSC_Simulator</p><p><b>status</b>: Active</p><p><b>date</b>: 2021-07-17</p><p><b>publisher</b>: HL7 International / Imaging Integration</p><p><b>contact</b>: <a href=\"http://www.hl7.org/Special/committees/imagemgt\">http://www.hl7.org/Special/committees/imagemgt</a>, HL7 Imaging Integration Workgroup: <a href=\"http://www.hl7.org/Special/committees/imagemgt\">http://www.hl7.org/Special/committees/imagemgt</a>, Abderrazek Boufahja: <a href=\"mailto:abderrazek.boufahja@gehealthcare.com\">abderrazek.boufahja@gehealthcare.com</a></p><p><b>description</b>: </p><div><p>TestScript to validate the FHIR Server searching capabilities.</p>\n</div><p><b>jurisdiction</b>: <span title=\"Codes:{http://unstats.un.org/unsd/methods/m49/m49.htm 001}\">Global (Whole world)</span></p><p><b>copyright</b>: </p><div><p>HL7 2021</p>\n</div><h3>Destinations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Index</b></td><td><b>Profile</b></td></tr><tr><td style=\"display: none\">*</td><td>1</td><td><a href=\"http://terminology.hl7.org/5.5.0/CodeSystem-testscript-profile-destination-types.html#testscript-profile-destination-types-FHIR-Server\">Test script profile destination type</a> FHIR-Server: FHIR Server</td></tr></table><blockquote><p><b>variable</b></p><p><b>name</b>: rdsResourceId</p><p><b>defaultValue</b>: 2535717</p><p><b>description</b>: Enter the resource ID of the Observation describing a Radiation Dose Summary, registered in your server.</p></blockquote><blockquote><p><b>variable</b></p><p><b>name</b>: patientId</p><p><b>expression</b>: Observation.subject.reference.replaceMatches('.*Patient/','').replaceMatches('/_history.*','')</p><p><b>sourceId</b>: rds-read-response</p></blockquote><blockquote><p><b>variable</b></p><p><b>name</b>: deviceId</p><p><b>expression</b>: Observation.device.reference.replaceMatches('.*Device/','').replaceMatches('/_history.*','')</p><p><b>sourceId</b>: rds-read-response</p></blockquote><blockquote><p><b>variable</b></p><p><b>name</b>: practitionerId</p><p><b>expression</b>: Observation.performer.reference.replaceMatches('.*Practitioner/','').replaceMatches('/_history.*','')</p><p><b>sourceId</b>: rds-read-response</p></blockquote><blockquote><p><b>variable</b></p><p><b>name</b>: imagingStudyId</p><p><b>expression</b>: Observation.partOf.reference.replaceMatches('.*(MedicationAdministration|MedicationDispense|MedicationStatement|Procedure|Immunization|ImagingStudy)/','').replaceMatches('/_history.*','')</p><p><b>sourceId</b>: rds-read-response</p></blockquote><blockquote><p><b>variable</b></p><p><b>name</b>: date</p><p><b>path</b>: Observation/effectiveDateTime/@value</p><p><b>sourceId</b>: rds-read-response</p></blockquote><blockquote><p><b>variable</b></p><p><b>name</b>: identifier</p><p><b>path</b>: Observation/identifier/value</p><p><b>sourceId</b>: rds-read-response</p></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: Observation_read</p><p><b>description</b>: Read provided Observation - the radiation dose summary</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td><td><b>ResponseId</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/5.5.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-read\">Test script operation code</a> read: Read</td><td>Observation</td><td>Read the Radiation Dose Summary observation ${rdsResourceId}</td><td>json</td><td>true</td><td>/${rdsResourceId}</td><td>rds-read-response</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Operator</b></td><td><b>ResponseCode</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned HTTP status is 200(OK) or 201(Created).</td><td>response</td><td>in</td><td>200,201</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Operator</b></td><td><b>Path</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned Observation is not empty.</td><td>response</td><td>notEmpty</td><td>Observation/id</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: Observation_search_patient</p><p><b>description</b>: Search radiation dose summary by patient</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/5.5.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-search\">Test script operation code</a> search: Search</td><td>Observation</td><td>Search Radiation Dose Summary using the patientId ${patientId}</td><td>json</td><td>true</td><td>?code=73569-6&amp;patient=${patientId}</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the total number of response is greater than 1.</td><td>Bundle.total.toInteger() &gt;= 1</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: Observation_search_device</p><p><b>description</b>: Search radiation dose summary by device</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/5.5.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-search\">Test script operation code</a> search: Search</td><td>Observation</td><td>Search Radiation Dose Summary using the deviceId ${deviceId}</td><td>json</td><td>true</td><td>?code=73569-6&amp;device=${deviceId}</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the total number of response is greater than 1.</td><td>Bundle.total.toInteger() &gt;= 1</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: Observation_search_partof</p><p><b>description</b>: Search radiation dose summary by part-of</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/5.5.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-search\">Test script operation code</a> search: Search</td><td>Observation</td><td>Search Radiation Dose Summary using the ImagingStudy ID ${imagingStudyId}</td><td>json</td><td>true</td><td>?code=73569-6&amp;part-of=${imagingStudyId}</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the total number of response is greater than 1.</td><td>Bundle.total.toInteger() &gt;= 1</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: Observation_search_identifier</p><p><b>description</b>: Search radiation dose summary by identifier</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/5.5.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-search\">Test script operation code</a> search: Search</td><td>Observation</td><td>Search Radiation Dose Summary using the identifier of the Observation ${identifier}</td><td>json</td><td>true</td><td>?code=73569-6&amp;identifier=${identifier}</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the total number of response is greater than 1.</td><td>Bundle.total.toInteger() &gt;= 1</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: Observation_search_date</p><p><b>description</b>: Search radiation dose summary by date</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/5.5.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-search\">Test script operation code</a> search: Search</td><td>Observation</td><td>Search Radiation Dose Summary using the date of the Observation ${date}</td><td>json</td><td>true</td><td>?code=73569-6&amp;date=${date}</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the total number of response is greater than 1.</td><td>Bundle.total.toInteger() &gt;= 1</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: Observation_read_patient</p><p><b>description</b>: Read patient resource</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td><td><b>ResponseId</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/5.5.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-read\">Test script operation code</a> read: Read</td><td>Patient</td><td>Read the Patient ${patientId}</td><td>json</td><td>true</td><td>/${patientId}</td><td>patient-read-response</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Operator</b></td><td><b>ResponseCode</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned HTTP status is 200(OK) or 201(Created).</td><td>response</td><td>in</td><td>200,201</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Operator</b></td><td><b>Path</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned Patient is not empty.</td><td>response</td><td>notEmpty</td><td>id</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: Observation_read_device</p><p><b>description</b>: Read device resource</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td><td><b>ResponseId</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/5.5.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-read\">Test script operation code</a> read: Read</td><td>Device</td><td>Read the Device ${deviceId}</td><td>json</td><td>true</td><td>/${deviceId}</td><td>device-read-response</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Operator</b></td><td><b>ResponseCode</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned HTTP status is 200(OK) or 201(Created).</td><td>response</td><td>in</td><td>200,201</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Operator</b></td><td><b>Path</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned Device is not empty.</td><td>response</td><td>notEmpty</td><td>id</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: Observation_read_practitioner</p><p><b>description</b>: Read practitioner resource</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td><td><b>ResponseId</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/5.5.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-read\">Test script operation code</a> read: Read</td><td>Practitioner</td><td>Read the Practitioner ${practitionerId}</td><td>json</td><td>true</td><td>/${practitionerId}</td><td>practitioner-read-response</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Operator</b></td><td><b>ResponseCode</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned HTTP status is 200(OK) or 201(Created).</td><td>response</td><td>in</td><td>200,201</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Operator</b></td><td><b>Path</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned Practitioner is not empty.</td><td>response</td><td>notEmpty</td><td>id</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: Observation_read_imagingstudy</p><p><b>description</b>: Read imagingstudy resource</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td><td><b>ResponseId</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/5.5.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-read\">Test script operation code</a> read: Read</td><td>ImagingStudy</td><td>Read the ImagingStudy ${imagingStudyId}</td><td>json</td><td>true</td><td>/${imagingStudyId}</td><td>imagingstudy-read-response</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Operator</b></td><td><b>ResponseCode</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned HTTP status is 200(OK) or 201(Created).</td><td>response</td><td>in</td><td>200,201</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Operator</b></td><td><b>Path</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned ImagingStudy is not empty.</td><td>response</td><td>notEmpty</td><td>id</td><td>false</td></tr></table></blockquote></blockquote></div>"
  },
  "extension" : [
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode" : "ii"
    }
  ],
  "url" : "http://hl7.org/fhir/uv/radiation-dose-summary/TestScript/RDSC-Simulator",
  "version" : "0.1.0",
  "name" : "TestScript_RDSC_Simulator",
  "status" : "active",
  "date" : "2021-07-17",
  "publisher" : "HL7 International / Imaging Integration",
  "contact" : [
    {
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/imagemgt"
        }
      ]
    },
    {
      "name" : "HL7 Imaging Integration Workgroup",
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/imagemgt"
        }
      ]
    },
    {
      "name" : "Abderrazek Boufahja",
      "telecom" : [
        {
          "system" : "email",
          "value" : "abderrazek.boufahja@gehealthcare.com"
        }
      ]
    }
  ],
  "description" : "TestScript to validate the FHIR Server searching capabilities.",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code" : "001"
        }
      ]
    }
  ],
  "copyright" : "HL7 2021",
  "destination" : [
    {
      "index" : 1,
      "profile" : {
        "system" : "http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types",
        "code" : "FHIR-Server",
        "display" : "FHIR Server"
      }
    }
  ],
  "variable" : [
    {
      "name" : "rdsResourceId",
      "defaultValue" : "2535717",
      "description" : "Enter the resource ID of the Observation describing a Radiation Dose Summary, registered in your server."
    },
    {
      "name" : "patientId",
      "expression" : "Observation.subject.reference.replaceMatches('.*Patient/','').replaceMatches('/_history.*','')",
      "sourceId" : "rds-read-response"
    },
    {
      "name" : "deviceId",
      "expression" : "Observation.device.reference.replaceMatches('.*Device/','').replaceMatches('/_history.*','')",
      "sourceId" : "rds-read-response"
    },
    {
      "name" : "practitionerId",
      "expression" : "Observation.performer.reference.replaceMatches('.*Practitioner/','').replaceMatches('/_history.*','')",
      "sourceId" : "rds-read-response"
    },
    {
      "name" : "imagingStudyId",
      "expression" : "Observation.partOf.reference.replaceMatches('.*(MedicationAdministration|MedicationDispense|MedicationStatement|Procedure|Immunization|ImagingStudy)/','').replaceMatches('/_history.*','')",
      "sourceId" : "rds-read-response"
    },
    {
      "name" : "date",
      "path" : "Observation/effectiveDateTime/@value",
      "sourceId" : "rds-read-response"
    },
    {
      "name" : "identifier",
      "path" : "Observation/identifier/value",
      "sourceId" : "rds-read-response"
    }
  ],
  "test" : [
    {
      "name" : "Observation_read",
      "description" : "Read provided Observation - the radiation dose summary",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "read"
            },
            "resource" : "Observation",
            "description" : "Read the Radiation Dose Summary observation ${rdsResourceId}",
            "accept" : "json",
            "encodeRequestUrl" : true,
            "params" : "/${rdsResourceId}",
            "responseId" : "rds-read-response"
          }
        },
        {
          "assert" : {
            "description" : "Confirm that the returned HTTP status is 200(OK) or 201(Created).",
            "direction" : "response",
            "operator" : "in",
            "responseCode" : "200,201",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "description" : "Confirm that the returned Observation is not empty.",
            "direction" : "response",
            "operator" : "notEmpty",
            "path" : "Observation/id",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "Observation_search_patient",
      "description" : "Search radiation dose summary by patient",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "search"
            },
            "resource" : "Observation",
            "description" : "Search Radiation Dose Summary using the patientId ${patientId}",
            "accept" : "json",
            "encodeRequestUrl" : true,
            "params" : "?code=73569-6&patient=${patientId}"
          }
        },
        {
          "assert" : {
            "description" : "Confirm that the total number of response is greater than 1.",
            "expression" : "Bundle.total.toInteger() >= 1",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "Observation_search_device",
      "description" : "Search radiation dose summary by device",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "search"
            },
            "resource" : "Observation",
            "description" : "Search Radiation Dose Summary using the deviceId ${deviceId}",
            "accept" : "json",
            "encodeRequestUrl" : true,
            "params" : "?code=73569-6&device=${deviceId}"
          }
        },
        {
          "assert" : {
            "description" : "Confirm that the total number of response is greater than 1.",
            "expression" : "Bundle.total.toInteger() >= 1",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "Observation_search_partof",
      "description" : "Search radiation dose summary by part-of",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "search"
            },
            "resource" : "Observation",
            "description" : "Search Radiation Dose Summary using the ImagingStudy ID ${imagingStudyId}",
            "accept" : "json",
            "encodeRequestUrl" : true,
            "params" : "?code=73569-6&part-of=${imagingStudyId}"
          }
        },
        {
          "assert" : {
            "description" : "Confirm that the total number of response is greater than 1.",
            "expression" : "Bundle.total.toInteger() >= 1",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "Observation_search_identifier",
      "description" : "Search radiation dose summary by identifier",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "search"
            },
            "resource" : "Observation",
            "description" : "Search Radiation Dose Summary using the identifier of the Observation ${identifier}",
            "accept" : "json",
            "encodeRequestUrl" : true,
            "params" : "?code=73569-6&identifier=${identifier}"
          }
        },
        {
          "assert" : {
            "description" : "Confirm that the total number of response is greater than 1.",
            "expression" : "Bundle.total.toInteger() >= 1",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "Observation_search_date",
      "description" : "Search radiation dose summary by date",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "search"
            },
            "resource" : "Observation",
            "description" : "Search Radiation Dose Summary using the date of the Observation ${date}",
            "accept" : "json",
            "encodeRequestUrl" : true,
            "params" : "?code=73569-6&date=${date}"
          }
        },
        {
          "assert" : {
            "description" : "Confirm that the total number of response is greater than 1.",
            "expression" : "Bundle.total.toInteger() >= 1",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "Observation_read_patient",
      "description" : "Read patient resource",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "read"
            },
            "resource" : "Patient",
            "description" : "Read the Patient ${patientId}",
            "accept" : "json",
            "encodeRequestUrl" : true,
            "params" : "/${patientId}",
            "responseId" : "patient-read-response"
          }
        },
        {
          "assert" : {
            "description" : "Confirm that the returned HTTP status is 200(OK) or 201(Created).",
            "direction" : "response",
            "operator" : "in",
            "responseCode" : "200,201",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "description" : "Confirm that the returned Patient is not empty.",
            "direction" : "response",
            "operator" : "notEmpty",
            "path" : "id",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "Observation_read_device",
      "description" : "Read device resource",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "read"
            },
            "resource" : "Device",
            "description" : "Read the Device ${deviceId}",
            "accept" : "json",
            "encodeRequestUrl" : true,
            "params" : "/${deviceId}",
            "responseId" : "device-read-response"
          }
        },
        {
          "assert" : {
            "description" : "Confirm that the returned HTTP status is 200(OK) or 201(Created).",
            "direction" : "response",
            "operator" : "in",
            "responseCode" : "200,201",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "description" : "Confirm that the returned Device is not empty.",
            "direction" : "response",
            "operator" : "notEmpty",
            "path" : "id",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "Observation_read_practitioner",
      "description" : "Read practitioner resource",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "read"
            },
            "resource" : "Practitioner",
            "description" : "Read the Practitioner ${practitionerId}",
            "accept" : "json",
            "encodeRequestUrl" : true,
            "params" : "/${practitionerId}",
            "responseId" : "practitioner-read-response"
          }
        },
        {
          "assert" : {
            "description" : "Confirm that the returned HTTP status is 200(OK) or 201(Created).",
            "direction" : "response",
            "operator" : "in",
            "responseCode" : "200,201",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "description" : "Confirm that the returned Practitioner is not empty.",
            "direction" : "response",
            "operator" : "notEmpty",
            "path" : "id",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "Observation_read_imagingstudy",
      "description" : "Read imagingstudy resource",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "read"
            },
            "resource" : "ImagingStudy",
            "description" : "Read the ImagingStudy ${imagingStudyId}",
            "accept" : "json",
            "encodeRequestUrl" : true,
            "params" : "/${imagingStudyId}",
            "responseId" : "imagingstudy-read-response"
          }
        },
        {
          "assert" : {
            "description" : "Confirm that the returned HTTP status is 200(OK) or 201(Created).",
            "direction" : "response",
            "operator" : "in",
            "responseCode" : "200,201",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "description" : "Confirm that the returned ImagingStudy is not empty.",
            "direction" : "response",
            "operator" : "notEmpty",
            "path" : "id",
            "warningOnly" : false
          }
        }
      ]
    }
  ]
}

XIG built as of ??metadata-date??. Found ??metadata-resources?? resources in ??metadata-packages?? packages.